package com.bdqn.bookshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.bookshop.entity.Setting;
import com.bdqn.bookshop.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface SettingService extends IService<Setting> {

    /**
     * 富文本编辑器上传图片
     * @return
     */
    public Map<String,Object> uploadImage(MultipartFile file , HttpServletRequest request);

    /**
     * 修改系统信息
     * @param file
     * @param setting
     * @return
     */
    public Result updateSetting(MultipartFile file , Setting setting,HttpServletRequest request);

    /**
     * 加载系统信息
     * @return
     */
    public Setting loadSetting();
}
